function getDisponibity(idStation,callBack){
	$.getJSON("http://vlove.helia-agency.com/webservices/getDisponibility.php", 
		{"idStation":idStation},
		function(data){  
			callBack(data);
		}
	)	
}

function getStationsByCoord(lat, long, nombreStation, callBack){
	$.getJSON("http://vlove.helia-agency.com/webservices/getStationsByCoord.php", 
		{"lat":lat,"long":long,"nombreStation":nombreStation},
		function(data){  
			callBack(data);
		}
	)	
}

function getUsersPositions(userId,callBack){
	$.getJSON("http://vlove.helia-agency.com/webservices/getUsersPositions.php", 
		{"user_id":userId},
		function(data){  
			callBack(data);
		}
	)	
}

function saveUserPosition(lat,long,userId,sharePos,callBack){
	$.getJSON("http://vlove.helia-agency.com/webservices/saveUserPosition.php", 
		{"lat":lat,"long":long,"user_id":userId,"sharePosition":sharePos},
		function(data){  
			callBack(data);
		}
	)
}